<?php
/**
 * Created by PhpStorm.
 * User: FoxxxZhu
 * Date: 2018/4/20
 * Time: 17:26
 */

ini_set('always_populate_raw_post_data',-1);
error_reporting(E_ALL);
define('L_WORKSPACE_PATH', dirname(L_APP_PATH) .DIRECTORY_SEPARATOR);
//load config
require L_WORKSPACE_PATH . 'env.php';
defined('L_FRAMEWORK_PATH') OR define('L_FRAMEWORK_PATH', L_WORKSPACE_PATH);
defined('L_APP_VIEW_PATH') OR define('L_APP_VIEW_PATH', L_APP_PATH . 'view'.DIRECTORY_SEPARATOR);
defined('L_DATA_PATH') OR define('L_DATA_PATH', L_WORKSPACE_PATH . 'data'.DIRECTORY_SEPARATOR);
defined('L_EXT_PATH') OR define('L_EXT_PATH', L_FRAMEWORK_PATH . 'ext'.DIRECTORY_SEPARATOR);
defined('L_APP_NAME') OR define('L_APP_NAME', basename(L_APP_PATH));
defined('L_DEBUG') OR define('L_DEBUG', false);


//load & init lavender
require L_FRAMEWORK_PATH . 'lavender'.DIRECTORY_SEPARATOR.'Core.php';

\Lavender\Core::register_autoload('Forxx', L_FRAMEWORK_PATH.'forxx'.DIRECTORY_SEPARATOR);